using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace Universe.Remoting.Tests
{
    [Serializable]
    public class MyData
    {
        public int Counter;

        public bool IsMarshaled = false;

        public MyData() 
        {
            IsMarshaled = false;
        }

        public MyData(int counter): this()
        {
            Counter = counter;
        }

        [OnDeserialized]
        private void MyHandler(StreamingContext context)
        {
            IsMarshaled = true;
        }


    }
}
